GtkScrollableWindow: Automatically set focus adjustments
authorAlexander Larsson <alexl@redhat.com>
Mon, 10 Jun 2013 12:55:54 +0000 (14:55 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 13 Jun 2013 10:17:06 +0000 (12:17 +0200)
commit17c559c4299e928559a9d8b6c2a026bb22684101
tree9f1904873f536c3ae00f042eb76d3a67467fdd75
parent157102aa735b7e26611725e8e62c530b4fe0a830
GtkScrollableWindow: Automatically set focus adjustments

When adding with a viewport we automatically set the focus
adjustments on the viewport from the scrolled window, so that
when any child widget gets focused we automatically scroll to it.

This is generally nice, but its particularly important for GtkListBox
where focus changing is how we navigate between rows.

We also ensure that the adjustments are always set before adding the
child to the viewport, which we will need later to pick up the
adjustments on add.
gtk/gtkscrolledwindow.c